import { http } from '@/http/doorRequest';

// 订单列表
export function openDoor(data: EmptyObjectType) {
	return http.post(`/appsdk/door/key/open-the-door/v1`, data, {
		header: {
			Appsystem: '{ "deviceGuid": "omuZ_4r3X2B2_irWkR-B-ZzlUDDw", "deviceType": 34, "appName": "bshmp", "appVer": "2.3.9.1", "sysType": 0, "sysVer": "", "sysModule": "" }',
			'User-Agent': `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090c37)XWEB/14185`,
			Timestamp: Math.floor(new Date().getTime() / 1000),
			Openid: 'uMjgxNGQyOTItMA==',
			'Package-Name': 'bsh.applet',
			Referer: 'https://servicewechat.com/wx0e185109a2afa8b9/93/page-frame.html'
		}
	});
}
